home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 016 / herc.arc / GFILL.C < prev    next >
Encoding:
C/C++ Source or Header  |  1986-03-15  |  304 b   |  20 lines

  1.  
  2. #define LINT_ARGS
  3.  
  4. extern  void gline(int, int, int, int);
  5. void gfill(int, int, int, int);
  6.  
  7. void gfill(x1, y1, x2, y2)
  8. int x1, y1, x2, y2;
  9. {
  10.     int tmp;
  11.  
  12.     if(x1 > x2)
  13.         tmp = x2, x2 = x1, x1 = tmp;
  14.     while(x1 <= x2) {
  15.         gline(x1, y1, x1, y2);
  16.         x1++;
  17.     }
  18. }
  19.  
  20.